package lab13;

public class AnimalTest {

	public static void main(String[] args) {

		Human gosho = new Human("Gosho");
		Human pesho = new Human("Pesho", 20, 80.7, false, 1);
		System.out.println(gosho.toString());
		gosho.walk();
		System.out.println(pesho.toString());
		pesho.walk();
		gosho.setLegNumber(4);
		gosho.walk();
		gosho.setLegNumber(1);
		gosho.walk();
		System.out.println("Pesho equals Gosho: " + pesho.equals(gosho));
		gosho.setName("Pesho");
		System.out.println("Pesho equals Gosho: " + pesho.equals(gosho));
		System.out.println();

		Dog sharo = new Dog("Sharo");
		System.out.println(sharo);
		Dog barkspawn = new Dog("Barkspawn", 8, 70.0, true, 4);
		barkspawn.bark();
		sharo.walk();
		barkspawn.eat();
		barkspawn.setLegNumber(3);
		barkspawn.walk();
		System.out.println();

		Eagle pesho_pticata = new Eagle("Pesho");
		System.out.println(pesho_pticata.toString());
		pesho_pticata.fly();
		System.out.println();

		Shark gosho_akulata = new Shark("Gosho", 20, 300, true);
		System.out.println(gosho_akulata);
		gosho_akulata.swim();
		gosho_akulata.smellBlood();
		System.out.println();
	}
}